package com.lzh.shijicloudstack.model.dto.ingredient;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author luzhiheng
 * @date 2025-01-25
 */
@Data
@ApiModel(value = "新增食材Dto")
public class AddIngredientDto {

    /**
     * 名称
     */
    @NotEmpty(message = "名称不能为空")
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 类别ID
     */
    @NotNull(message = "类别ID不能为空")
    @ApiModelProperty(value = "类别ID")
    private Long categoryId;

    /**
     * 单位
     */
    @ApiModelProperty(value = "单位")
    private Integer unit;

    /**
     * 图片
     */
    @ApiModelProperty(value = "图片")
    private String img;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;
}
